#include "AppleEntity.h"
#include "Application.h"

AppleEntity::AppleEntity(void)
{
	Initialize();
}

AppleEntity::AppleEntity(int pX, int pY) 
{
	_X = pX;
	_Y = pY;
	Initialize();
}

AppleEntity::~AppleEntity(void){}

void AppleEntity::Initialize()
{
	_Sprite.SetImage(Application::Instance().ImageManager().GetImage(Apple));
	_Sprite.SetBlendMode(sf::Blend::Alpha);
}

void AppleEntity::Draw(sf::RenderWindow& pRenderWindow)
{
	_Sprite.SetPosition((float)_X, (float)_Y);
	pRenderWindow.Draw(_Sprite);
}

void AppleEntity::Think()
{

}